package com.lww.feature.test.regular;

import org.junit.Test;

/**
 * @author yi an
 * @date 2017/3/30
 */
public class test {

    @Test
    public void testRegular(){
        String regex = "^[a-zA-Z0-9_-]+@[a-zA-Z0-9_-]+\\.[a-zA-Z0-9_-]+$";
        String aa = "rqoiweo@alsjfalsd.alskdflaskd";
        System.out.println(aa.matches(regex));
    }
}
